package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 导出模板表对象 tb_template
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class TbTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模板类型：1-报价订单模板、2-报价详情模板、3-订单模板、4-订单详情模板 */
    @Excel(name = "模板类型：1-报价订单模板、2-报价详情模板、3-订单模板、4-订单详情模板")
    private Long type;

    /** 模板内容 */
    @Excel(name = "模板内容")
    private String context;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    private Long templateChildrenId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }

    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }

    public Long getTemplateChildrenId() {
        return templateChildrenId;
    }

    public void setTemplateChildrenId(Long templateChildrenId) {
        this.templateChildrenId = templateChildrenId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("context", getContext())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("templateName", getTemplateName())
            .toString();
    }
}
